<template>
  <header class="header">
    <div v-if="showBackBtn" class="header_return" v-on:click="goBack">
      <img src="@/assets/imgs/fanhui.png">
    </div>
    <div class="header_title_sub">{{title}}</div>
  </header>
</template>

<script>
  export default {
    props: {
      title: String,
      showBackBtn: {type: Boolean, default: true}
    },
    name: 'JL-Navigation',
    methods: {
      goBack: function () {
        this.$router.back()
      }
    }
  }
</script>

<style scoped>

</style>
